package com.hermit.${module}.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hermit.${module}.entity.${Domain}Entity;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface ${Domain}Dao extends BaseMapper<${Domain}Entity> {

    /**
    * 查询所有数据
    * @return
    */
    List<${Domain}Entity> queryAll();

    /**
    * 根据查询条件查询
    */
    List<${Domain}Entity> query(@Param(Constants.WRAPPER) QueryWrapper<${Domain}Entity> queryWrapper);

}